﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.FileServerData;

public partial class f_file
{
    [Key]
    public long id { get; set; }

    [StringLength(100)]
    public string guid { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [StringLength(100)]
    public string code { get; set; }

    [StringLength(255)]
    public string parent_guid { get; set; }

    /// <summary>
    /// 父级
    /// </summary>
    public long? parent_id { get; set; }

    /// <summary>
    /// 层级
    /// </summary>
    public uint? level { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string name { get; set; }

    /// <summary>
    /// 系统名称
    /// </summary>
    [StringLength(255)]
    public string system_name { get; set; }

    [StringLength(255)]
    public string path { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string url { get; set; }

    /// <summary>
    /// 路径
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? create_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? update_time { get; set; }

    public int? user_id { get; set; }

    [StringLength(255)]
    public string user_guid { get; set; }

    /// <summary>
    /// dir,file
    /// </summary>
    [StringLength(255)]
    public string type { get; set; }

    /// <summary>
    /// 文件扩展名
    /// </summary>
    [StringLength(255)]
    public string extension { get; set; }

    /// <summary>
    /// 大小,kb
    /// </summary>
    public double? size { get; set; }

    /// <summary>
    /// 来源
    /// </summary>
    [StringLength(255)]
    public string from { get; set; }

    /// <summary>
    /// 删除代码
    /// </summary>
    [StringLength(255)]
    public string del_code { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? del_time { get; set; }

    /// <summary>
    /// 0正常，1删除
    /// </summary>
    public int? status { get; set; }

    /// <summary>
    /// 0个人空间，1公共空间
    /// </summary>
    public int? space_type { get; set; }
}
